import { defHttp } from "@/utils/http";

// ERP 抗球蛋白API
export const antiglobulinApi = {
	// 获得抗球蛋白分页
	antiglobulinList: async (params: any) => {
		return await defHttp.get({ url: `/whs/antiglobulin/page`, params });
	},
	// 新增抗球蛋白
	antiglobulinCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/antiglobulin/create`, data });
	},

	// 修改抗球蛋白
	antiglobulinUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/antiglobulin/update`, data });
	},

	// 删除抗球蛋白
	antiglobulinDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/antiglobulin/delete?id=` + id });
	}
};
